package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-06-09
 * Time: 21:59
 */
public class TestUSB {
    public static void main(String[] args) {
        Computer cp=new Computer();
        cp.powerOn();
        cp.openDevice(new KeyBoard());
        cp.openDevice(new Mouse());
        cp.powerOff();
    }
}
